Skip to content

Remove subcategory enums from program and l3_common#893

Open
braingram wants to merge 4 commits into
spacetelescope:mainfrom
braingram:rm_subcategory_enum
Open

Remove subcategory enums from program and l3_common#893
braingram wants to merge 4 commits into
spacetelescope:mainfrom
braingram:rm_subcategory_enum

Conversation

@braingram

@braingram braingram commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #889

Removes the subcategory enums in program and l3_common.

Regression tests:
https://github.com/spacetelescope/RegressionTests/actions/runs/28548621560
show 2 expected differences for tvac data where subcategory is ? with this PR instead of CAL on main (both from the use of create_fake_data in processing tvac data).

Tasks

  • Update or add relevant rad tests.
  • Update relevant docstrings and / or docs/ page.
  • Does this PR change any schema files?
    • Schema changes were discussed at RAD Review Board meeting.
  • Does this PR change any API used downstream? (If not, label with no-changelog-entry-needed.)
News fragment change types:
  • changes/<PR#>.feature.rst: new feature
  • changes/<PR#>.bugfix.rst: fixes an issue
  • changes/<PR#>.doc.rst: documentation change
  • changes/<PR#>.removal.rst: deprecation or removal of public API
  • changes/<PR#>.misc.rst: infrastructure or miscellaneous change

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.03%. Comparing base (c9bd9d5) to head (ef3681d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #893   +/-   ##
=======================================
  Coverage   86.03%   86.03%           
=======================================
  Files          15       15           
  Lines        1131     1131           
=======================================
  Hits          973      973           
  Misses        158      158           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@braingram braingram marked this pull request as ready for review July 6, 2026 13:36
@braingram braingram force-pushed the rm_subcategory_enum branch from 4dbd729 to ef3681d Compare July 6, 2026 13:54
@schlafly

schlafly commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

This looks good to me. I took the opportunity to review the use of enums more broadly in rad/latest in #894 . At least visit type probably should get similar treatment to subcategory, but that will need RTB review first, etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review subcategory enum

3 participants